<template>
  <div class="app">
      <!-- <h3>大首页</h3> -->
      <router-view></router-view>
      <div class="footer">
          <router-link active-class="active" to="/index/home">商城</router-link>
          <router-link active-class="active" to="/index/cate">分类</router-link>
          <router-link active-class="active" to="/index/shop">购物车</router-link>
          <router-link active-class="active" to="/index/mine">我的</router-link>
      </div>

  </div>
</template>

<script>
export default {

}
</script>

<style>
.footer{
  background: #fff;
  width: 100vw;
  height: 0.8rem;
  border-top: 0.01rem solid #666;
  position: fixed;
  left: 0;
  bottom: 0;
  display: flex;

}
.footer a{
  flex: 1;
  text-align: center;
  line-height: 0.8rem;
  
}
.active{
  color: #fff;
  background:  #ff4400;;
}
</style>